package top.maof.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.maof.book.params.BooksParam;
import top.maof.book.model.Book;
import top.maof.book.result.PageData;
import top.maof.book.result.PageWrap;
import top.maof.book.vo.PageVo;

import java.util.List;
import java.util.Map;

/**
 * Created by CodeX4J.
 */
public interface BookService extends IService<Book> {

    List<String> classifies(String sourceSite);

    public PageData<Book> findPage(PageWrap<Book> pageWrap);

    public int add(Book book) throws Exception;

    public Book selectByNameAndAuthor(String name, String author);

    public Book find(int id);

    public int update(Book book);

    public int delete(int id);

    public List<Book> select(Map map);

    public int selectCount(Map map);

    public List<Book> selectList(List list);

    List<Book> selectByAuthor(String author);


    PageVo<Book> list(BooksParam booksParam);

}
